<template>
  <div>
    <homeTop></homeTop>
    <div class="main">
      <div class="mainliat">
        <span class="namelist">真实姓名</span>
        <span class="namesa">{{ list.myResults.name }}</span>
      </div>
      <div class="mainliat">
        <span class="namelist">所属医院</span>
        <span class="namesa">{{ list.myResults.inauguralHospital }}</span>
      </div>
      <div class="mainliat">
        <span class="namelist">所属科室</span>
        <span class="namesa">{{ list.myResults.departmentName }}</span>
      </div>
      <div class="mainliat">
        <span class="namelist">职称</span>
        <span class="namesa">{{ list.myResults.jobTitle }}</span>
      </div>
      <div class="mainaaliat">
        <span class="namelist">个人介绍</span>
        <p class="namesa">
          {{ list.myResults.personalProfile }}
        </p>
      </div>
      <div class="mainaaliat">
        <span class="namelist">擅长领域</span>
        <p class="namesa">
          {{ list.myResults.goodField }}
        </p>
      </div>
    </div>
    <div class="footer">
      <p>如果更改以上信息，请致电000-5967432</p>
    </div>
  </div>
</template>
<script lang="ts" setup>
import homeTop from '../../components/homeTop/index.vue'
import { useRoute } from 'vue-router'
import { usecurrentStore } from '../../stores/my'
import { onMounted } from 'vue'

const route = useRoute()
const list: any = usecurrentStore()
const { doctorId, sessionId } = route.query

onMounted(async () => {
  try {
    await list.handmydata(doctorId, sessionId)
  } catch (error) {
    console.log(error, '获取失败')
  }
})
</script>
<style scoped lang="scss">
.main {
  width: 100vw;
  height: 85vh;
  .mainliat {
    width: 90%;
    height: 1.3rem;
    margin-left: 0.5rem;
    border-bottom: 1px solid rgb(219, 212, 212);
    span {
      line-height: 1.3rem;
      font-size: 15px;
    }
    .namelist {
      float: left;
      margin-left: 0.5rem;
    }
    .namesa {
      float: right;
      margin-right: 0.5rem;
      color: gray;
    }
  }
  .mainaaliat {
    height: 3.7rem;
    margin-left: 0.5rem;
    border-bottom: 1px solid rgb(219, 212, 212);
    span {
      line-height: 1.3rem;
      font-size: 15px;
    }
    .namelist {
      //   float: left;
      margin-left: 0.3rem;
    }
    .namesa {
      line-height: 20px;
      color: gray;
    }
  }
}
.footer {
  p {
    color: rgb(52, 161, 190);
    text-align: center;
  }
}
</style>
